package com.xc.file.bean;

import com.xc.core.model.SignModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;


/**
 * <p>上传文件参数</p>
 *
 * @author xc
 * @version v1.0.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class UploadBean extends SignModel {

    @ApiModelProperty(value = "文件名称")
    private String name;

    @ApiModelProperty(value = "文件hash值，文件的唯一值，md5加密计算")
    private String hashCode;

    @ApiModelProperty(value = "文件续传开始的位置")
    private Long fileIndex;

    @ApiModelProperty(value = "文件大小")
    private Long size;

    @ApiModelProperty(value = "父文件夹id")
    private String folderId;

    @ApiModelProperty(value = "文件目录路径")
    private String folderPath;

    @ApiModelProperty(value = "断点续传")
    private Boolean resumed = true;

}
